<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        @keyframes go {
            from {
                background-position: -184px 0px;
            }

            to {
                background-position: -1472px 0px;
            }
        }

        @keyframes go2 {
            from {
                transform: translateX(0px);
            }

            49% {
                transform: translateX(700px);
            }

            50% {
                transform: translateX(700px) rotateY(180deg);
            }

            to {
                transform: translateX(0px) rotateY(180deg);
            }
        }

        .box {
            width: 184px;
            height: 325px;
            background: url(./走路.png) no-repeat 0 0/1472px 325px;
            animation: go 0.7s steps(7) infinite, go2 4s linear infinite;
        }
    </style>
</head>

<body>
    <div class="box">

    </div>
</body>

</html>